package com.ld.hpfs.web.interseptor;

/**
 * web中使用的常量
 * 
 * @author bole
 * @date 2012-8-16 下午09:02:00
 */
public interface WebConstants {
    /** 超时提醒 */
    public static final String  TIME_OUT                          	= "{\"error\":true,\"msg\":\"登录超时,请重新登录！\"}";
    /** 保存session中的admin用户key */
    public static final String  CURRENT_USER                      	= "CURRENT_USER";
    public static final String  CURRENT_COMPANY                   	= "CURRENT_COMPANY";
    public static final String  CURRENT_LANG                  	  	= "CURRENT_LANG";
    
    public static final String  MAX_USER_NUMBER                   	= "MAX_USER_NUMBER";                        //用户数上限
    public static final String  MAX_COMPANY_NUMBER                	= "MAX_COMPANY_NUMBER";                      //公司数上限
    
    public static final Integer IMPORT_TASK_TYPE_LOCAL_FILE       	= 0;                                         // 本地文件导入
    public static final Integer IMPORT_TASK_TYPE_SERVER_FILE      	= 1;                                         // 服务器文件导入
    public static final Integer IMPORT_TASK_TYPE_SQL              	= 2;                                         // 数据源导入
    public static final Integer IMPORT_TASK_TYPE_SERVER_FILE_PLAN 	= 3;                                         // 计划任务导入文件
    public static final Integer IMPORT_TASK_TYPE_SQL_PLAN         	= 4;                             // 计划任务导入数据源

    public static final Integer TASK_STATUS_UPLOADED              	= 1;                             // 数据就绪
    public static final Integer TASK_STATUS_IMPORTED              	= 2;                             // 已导入
    public static final Integer TASK_STATUS_MAPPED                	= 3;                             // 已科目映射
    public static final Integer TASK_STATUS_VOUCHERD              	= 4;                             // 已生成凭证
    public static final Integer TASK_STATUS_POSTED                	= 5;                             // 已过账
    
    public static final Integer RULE_TYPE_RETURN 					= 11;							// 退货
    public static final Integer RULE_TYPE_DISCOUN 					= 12;							// 折扣
    public static final Integer RULE_TYPE_REBATE 					= 13;							// 返利
    public static final Integer RULE_TYPE_SPLIT 					= 14;							// 拆分
    public static final Integer RULE_TYPE_MERGE 					= 15;							// 发票分组
    public static final Integer RULE_TYPE_WITHDETAILS 				= 16;							// 合并明细
	
    public static final Integer RULE_TYPE_REPLACE_GOOD 				= 21;							// 替换商品名
    public static final Integer RULE_TYPE_REPLACE_CUSTOMER 			= 22;							// 替换客户名
    public static final Integer RULE_TYPE_REPLACE_UNIT 				= 23;							// 替换单位
    public static final Integer RULE_TYPE_REPLACE_TYPE	 			= 24;							// 替换规格
	
    public static final Integer RULE_TYPE_ABSTRACT 					= 31;							// 自定义摘要
    public static final Integer RULE_TYPE_REMARK 					= 32;							// 自定义备注
    public static final Integer RULE_TYPE_DOCUMENT_CONSERVATION 	= 33;							// 单据状态
	
    public static final String RULE1_CN              		  		= "退货";                       	// 退货
    public static final String RULE2_CN              		  		= "折扣";                    		// 折扣
    public static final String RULE3_CN              		  		= "返利";                     	// 返利
    public static final String RULE4_CN              		  		= "拆分";                   		// 拆分
    public static final String RULE5_CN              		  		= "发票分组";                		// 发票分组
    public static final String RULE6_CN              		  		= "合并明细";               		// 合并明细
    
    public static final String RULE7_CN              		  		= "替换商品名";             		// 替换商品名
    public static final String RULE8_CN              		  		= "替换客户";                		// 替换客户
    public static final String RULE9_CN              		  		= "替换单位";                		// 替换单位
    public static final String RULE10_CN              	  	  		= "替换规格";               		// 替换规格
    
    public static final String RULE11_CN              	  	  		= "自定义摘要";              		// 自定义摘要
    public static final String RULE12_CN              	  	  		= "自定义备注";             		// 自定义备注
    public static final String RULE13_CN              	  	  		= "单据状态";               		// 单据状态
    
    public static final String RULE1_EN              		  		= "Returns"; 					// 退货
    public static final String RULE2_EN              		  		= "Discount";  					// 折扣
    public static final String RULE3_EN              		  		= "Rebate";  					// 返利
    public static final String RULE4_EN              		  		= "Split";  					// 拆分
    public static final String RULE5_EN              		  		= "Invoice group";  			// 发票分组
    public static final String RULE6_EN              		  		= "Contract detail";				// 合并明细
    
    public static final String RULE7_EN              		  		= "Replace goods name";  		// 替换商品名
    public static final String RULE8_EN              		  		= "Replace customer";  			// 替换客户
    public static final String RULE9_EN              		  		= "Replace unit";  				// 替换单位
    public static final String RULE10_EN              		  		= "Replace Specifications"; 	// 替换规格
    
    public static final String RULE11_EN              		  		= "Customize abstract";  		// 自定义摘要
    public static final String RULE12_EN              		  		= "Customize remark";  			// 自定义备注
    public static final String RULE13_EN              		  		= "Document status"; 			// 单据状态

    public static final int BATCH_SIZE                              = 1000;                         // 数据库查询分区大小
}
